PSPSDK=$(shell psp-config --pspsdk-path)
PSPLIBSDIR=$(PSPSDK)/..


TARGET = YouRlayer
OBJS = main.o gui.o function.o ctrl.o \
		error.o extern/freemem.o

BUILD_PRX = 1
PSP_FW_VERSION=500
INCDIR = $(PSPLIBSDIR)/include ../libmp4info-0.0.1.psp ../libmpcdec-r435.psp/include ../libttadec-foobar-2.4.2.psp \
	../libwavpack-4.32.psp ../libasfparser \
	../../libnge2/include

LIBDIR = $(PSPLIBSDIR)/lib \
	../../libnge2/lib
         
CFLAGS = -G0 -w -O2 -D_DEBUG_LOG
CXXFLAGS = $(CFLAGS) -fno-rtti
ASFLAGS = $(CFLAGS)
LDFLAGS =

LIBS +=  -lnge2 -lfreetype -lpng -lz -ljpeg -lg -lstdc++  -lpmp -lpspmpeg -lpspaudiocodec -lpspaudio -lpsppower  -lpspgum -lpspgu -lpsprtc -lm   
#-lmp4info -lmpcdec -lvorbisfile -lvorbis -logg -lttadec -lwavpack -lFLAC -lmac -lpspasfparser

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = YouRlayer Demo
PSP_EBOOT_ICON = ICON0.PNG
PSP_EBOOT_PIC1 = PIC1.PNG

PSPSDK=$(shell psp-config --pspsdk-path)
PSPBIN = $(PSPSDK)/../bin
include $(PSPSDK)/lib/build.mak